﻿namespace Digitalmes.Application.Common.Strategies;

/// <summary>
/// 表示业务策略接口。
/// </summary>
public interface IStrategy
{
    /// <summary>
    /// 执行策略。
    /// </summary>
    /// <param name="context">业务策略上下文</param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<StrategyResult> HandleAsync(StrategyContext context, CancellationToken cancellationToken);
}
